// * 重置Element ui 默认样式
@import "./bilibili-theme.scss";

html {
  overflow: hidden;
}
// flex布局
.flex-column {
  flex-direction: column;
}
.flex-num {
  flex: 1;
}
.flex-none {
  flex: none;
}
.flex-wrap {
  flex-wrap: wrap;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-right {
  justify-content: right;
}
.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}
.text-center{
  text-align: center;
}

.needsFinished {
  // position: relative;
  padding-top: 20px;
  height: 40px;
  &::before {
    content: "已满";
    width: 44px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    position: absolute;
    top: 4px;
    right: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    background: #c2edd9;
    color: #167448;
    text-align: right;
    font-size: 12px;
    transform: scale(.8);
  }
  &::after {
    content: " ";
    width: 4px;
    height: 4px;
    border-radius: 6px;
    background-color: #36a873;
    margin-left: 6px;
    position: absolute;
    top: 11px;
    right: 51px;
  }
}

.pause {
  // position: relative;
  padding-top: 20px;
  height: 40px;
  &::before {
    content: "暂停";
    width: 44px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    position: absolute;
    top: 4px;
    right: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    background: #f4cbc8;
    color: #c94c44;
    text-align: right;
    font-size: 12px;
    transform: scale(.8);
  }
  &::after {
    content: " ";
    width: 4px;
    height: 4px;
    border-radius: 6px;
    background-color: #c94c44;
    margin-left: 6px;
    position: absolute;
    top: 11px;
    right: 51px;
  }
}

.restore {
  padding-top: 20px;
  height: 40px;
  &::before {
    content: "恢复";
    width: 44px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    position: absolute;
    top: 4px;
    right: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    background: #f9e896;
    color: #d97626;
    text-align: right;
    font-size: 12px;
    transform: scale(.8);
  }
  &::after {
    content: " ";
    width: 4px;
    height: 4px;
    border-radius: 6px;
    background-color: #d97626;
    margin-left: 6px;
    position: absolute;
    top: 11px;
    right: 51px;
  }
}


.close {
  // position: relative;
  padding-top: 20px;
  height: 40px;
  &::before {
    content: "关闭";
    width: 44px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    position: absolute;
    top: 4px;
    right: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    background: #c4c4c4;
    color: #666;
    text-align: right;
    font-size: 12px;
    transform: scale(.8);
  }
  &::after {
    content: " ";
    width: 4px;
    height: 4px;
    border-radius: 6px;
    background-color: #666;
    margin-left: 6px;
    position: absolute;
    top: 11px;
    right: 51px;
  }
}

.multiplex {
  padding-top: 20px;
  height: 40px;
  &::before {
    content: "复用";
    width: 44px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    position: absolute;
    top: 4px;
    right: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    background: #ff9eb9;
    color: #d42355;
    text-align: right;
    font-size: 12px;
    transform: scale(.8);
  }
  &::after {
    content: " ";
    width: 4px;
    height: 4px;
    border-radius: 6px;
    background-color: #d42355;
    margin-left: 6px;
    position: absolute;
    top: 11px;
    right: 51px;
  }
}

.close .multiplex, .needsFinished .multiplex, .pause .multiplex, .restore .multiplex {
  padding-top: 20px;
  height: 40px;
  &::before {
    content: "复用";
    width: 44px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    position: absolute;
    top: 26px;
    right: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    background: #ff9eb9;
    color: #d42355;
    text-align: right;
    font-size: 12px;
  }
  &::after {
    content: " ";
    width: 6px;
    height: 6px;
    border-radius: 6px;
    background-color: #d42355;
    margin-left: 6px;
    position: absolute;
    top: 32px;
    right: 53px;
  }
}

.el-table__cell {
  padding: 13px 0 !important;
}

// * 菜单
// * button
button.el-button {
  padding: 0 10px;
  height: 32px;
  line-height: 1;
  border-radius: 3px;
}
button.cancle-md-btn {
  width: 80px;
  height: 32px;
  background-color: #ccc;
  border-color: #ccc;
  color: #fff;
  padding: 0px;
  &:focus {
    background-color: #ccc;
    border-color: #ccc;
    color: #fff;
  }
  &:hover {
    background-color: #b0b0b0;
    border-color: #b0b0b0;
    color: #fff;
  }
}
button.save-md-btn {
  width: 80px;
  height: 32px;
  padding: 0px;
  font-size: 12px;
  background-color: $main-color;
  border-color: $main-color;
  color: #fff;
  &:focus {
    background-color: $main-color;
    border-color: $main-color;
    color: #fff;
    outline: 0;
  }
  &:hover {
    color: #fff;
    border-color: $main-hover-color;
    background-color: $main-hover-color;
    outline: 0;
  }
}
button.res-md-btn {
  width: 70px;
  height: 32px;
  padding: 0px;
  font-size: 12px;
  background-color: #ffffff;
  border-color: #e2e3e5;
  color: #b3afa9;
  &:focus {
    background-color: #ffffff;
    border-color: #e2e3e5;
    color: #b3afa9;
    outline: 0;
  }
  &:hover {
    background-color: #fafaf9;
    border-color: #e2e3e5;
    color: #b3afa9;
  }
}
button.select-md-btn.is-disabled,
button.save-md-btn.is-disabled,
button.select-md-btn.is-disabled:focus,
button.save-md-btn.is-disabled:focus,
button.save-md-btn.is-disabled:hover,
button.select-md-btn.is-disabled:hover {
  color: #fff;
  cursor: not-allowed;
  background-image: none;
  background-color: $main-hover-color;
  border-color: $main-hover-color;
  opacity: 0.7;
}

// * el-dropdown
ul.el-popper {
  .el-dropdown-menu__item {
    line-height: 30px;
  }
}

// * 表单
form.el-form{
  .el-form-item{
    margin-bottom: 20px;
  }
  .el-form-item__label,.el-form-item__content{
    line-height: 32px;
  }
  .form-item-border-text{
    border: 1px solid #E4E7ED;
    border-radius: 3px;
    padding: 0px 10px;
    background-color: #F5F7FA;
    color: $main-font-color;
  }
}

// 小屏优化
@media screen and (max-width: 1500px) {
  .res-form-box {
    .el-input{
      width: 160px;
    }
    .el-range-editor--small {
      width: 180px;
    }
    .sett-select {
      .el-input{
        width: 120px;
      }
    }
  }
}
